package com.tbit.uqbike.object.pojo.vo;

import com.tbit.common.entity.view.PageResult;

import java.math.BigDecimal;

/**
 * 预存款收支情况vo
 *
 * @Author:yanlun
 * @DATE: 2022/11/18
 */
public class AccountDayStatBalanceVo {

    /**
     * 本期预存款收支
     */
    private IncomeExpendDetailVo balanceIncomeExpendDetail;
    /**
     * 期初预存款总额
     */
    private BigDecimal termStartBalance;
    /**
     * 期末预存款总额
     */
    private BigDecimal termEndBalance;
    /**
     * 数据列表
     */
    private PageResult<AccountDayStatBalanceDetailVO> pageList;

    public IncomeExpendDetailVo getBalanceIncomeExpendDetail() {
        return balanceIncomeExpendDetail;
    }

    public void setBalanceIncomeExpendDetail(IncomeExpendDetailVo balanceIncomeExpendDetail) {
        this.balanceIncomeExpendDetail = balanceIncomeExpendDetail;
    }

    public BigDecimal getTermStartBalance() {
        return termStartBalance == null ? null : termStartBalance.setScale(2, BigDecimal.ROUND_HALF_UP);
    }

    public void setTermStartBalance(BigDecimal termStartBalance) {
        this.termStartBalance = termStartBalance;
    }

    public BigDecimal getTermEndBalance() {
        return termEndBalance == null ? null : termEndBalance.setScale(2, BigDecimal.ROUND_HALF_UP);
    }

    public void setTermEndBalance(BigDecimal termEndBalance) {
        this.termEndBalance = termEndBalance;
    }

    public PageResult<AccountDayStatBalanceDetailVO> getPageList() {
        return pageList;
    }

    public void setPageList(PageResult<AccountDayStatBalanceDetailVO> pageList) {
        this.pageList = pageList;
    }
}
